@mixin flex {
  /* #ifndef APP-NVUE */
  display: flex;
  /* #endif */
  flex-direction: row;
}

@mixin height {
  /* #ifndef APP-NVUE */
  height: 100%;
  /* #endif */
  /* #ifdef APP-NVUE */
  flex: 1;
  /* #endif */
}

.popup-content {
  @include flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  height: 50px;
  text-align: center;
  background-color: #fff;
}

.popup-height {
  @include height;
  width: 200px;
}

.slot-content-item {
  background-color: $uni-secondary-color;
  padding: 2px 5px;
  border-radius: 5px;
  color: #fff;
}

.slot-box {
  gap: 5px;
  display: flex;
  flex-wrap: wrap;
}

.empty-box {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.select-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-view {
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.item-selected {
  background-color: #007aff;
  color: #fff;
}

.item-disabled {
  background-color: #f5f5f5;
  color: #999;
  opacity: 0.6;
}

.item-disabled.item-selected {
  background-color: #d0d0d0;
  color: #666;
}

.img-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.img-max {
  display: block;
  width: 100%;
  height: 100%;
}

.text-center {
  text-align: center;
}

.font-13 {
  font-size: 13px;
}

.font-12 {
  font-size: 12px;
}

.font-11 {
  font-size: 11px;
}

.text-grey1 {
  color: #888;
}

.text-grey2 {
  color: #aaa;
}

.list-cell-arrow::before {
  content: ' ';
  height: 10px;
  width: 10px;
  border-width: 2px 2px 0 0;
  border-color: #c0c0c0;
  border-style: solid;
  -webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  position: absolute;
  top: 50%;
  margin-top: -6px;
  right: 30rpx;
}

.list-cell {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  padding: 26rpx 30rpx;
}

.list-cell:first-child {
  border-radius: 8rpx 8rpx 0 0;
}

.list-cell:last-child {
  border-radius: 0 0 8rpx 8rpx;
}

.list-cell::after {
  content: '';
  position: absolute;
  border-bottom: 1px solid #eaeef1;
  -webkit-transform: scaleY(0.5) translateZ(0);
  transform: scaleY(0.5) translateZ(0);
  transform-origin: 0 100%;
  bottom: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}

.menu-list {
  margin: 15px 15px;

  .menu-item-box {
    width: 100%;
    display: flex;
    align-items: center;

    .menu-icon {
      color: #007aff;
      font-size: 16px;
      margin-right: 5px;
    }

    .text-right {
      margin-left: auto;
      margin-right: 34rpx;
      color: #999;
    }
  }
}

.home-container {
  background-image: linear-gradient(
    rgba(234, 242, 255, 1),
    rgba(255, 255, 255, 1)
  );
  .status_bar {
    height: var(--status-bar-height);
    width: 100%;
  }
}
.top-info {
  padding: 20rpx 32rpx;
  margin: 44rpx auto 0;
}

.top-item {
  display: inline-block;
  padding: 4rpx 16rpx;
  margin-right: 16rpx;
  font-size: 36rpx;
  font-weight: 400;
  border-radius: 24rpx;
  background-color: #fff;
}

.top-item image {
  display: inline-block;
  vertical-align: middle;
  width: 40rpx;
  height: 40rpx;
  margin-right: 8rpx;
}

.top-item .number {
  display: inline-block;
  vertical-align: middle;
}

.search-area {
  display: flex;
  align-items: center;
  padding: 12rpx 20rpx 12rpx 40rpx;
  border-bottom: 1px solid #e2e8f0;
}

.city {
  font-size: 14px;
  margin-right: 12px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 16rpx 32rpx;
}

.search-box /deep/ .is-input-border {
  border-radius: 32rpx;
  background-color: rgba(243, 244, 245, 1) !important;
}

.category-tabs {
  display: flex;
  padding: 12px 20px;
  overflow-x: auto;
  background-color: #fff;
}

.category-tab {
  white-space: nowrap;
  padding: 8rpx 16rpx;
  margin-right: 32rpx;
  text-align: center;
  line-height: 1.6;
  color: #48454b;
  border-radius: 8px;
  border: 1px solid #eee;
  background-color: #fff;
  font-size: 28rpx;
  .count {
    font-size: 24rpx;
  }
}

.category-tab.active {
  background-color: #eaf2ff;
  color: #2e87fb;
}

.sort-options {
  display: flex;
  padding: 12px 20px;
  gap: 12px;
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.sort-option {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 6px;
  background-color: #f1f5f9;
}

.content-area {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  background-color: #fff;
  justify-content: center;
}

.defaultBox {
  position: relative;
  width: 638rpx;
  height: 814rpx;
  margin: 0 auto;
}

.build-item {
  position: relative;
  width: 280rpx;
  height: 280rpx;
  margin: 8px;
  // background-color: #e0f2fe;
  border-radius: 8px;
  /* 增强阴影：模拟立体光照效果 */
  // box-shadow: 15px 15px 10px rgba(0, 0, 0, 0.15);
  &:nth-child(2n + 1) {
    margin-top: -140rpx;
  }
  // &:nth-child(2n + 2) {
  // margin-top: 140rpx;
  // }
  .img {
    display: block;
    position: absolute;
    top: auto;
    left: -50%;
    right: -50%;
    bottom: 0;
    margin: auto;
    max-width: none;
    width: 200%;
    height: 200%;
  }
}

.tips {
  margin-top: 40rpx;
  text-align: center;
  font-size: 32rpx;
  color: #666;
}
